﻿using Dyao.Book.Contract;

namespace Dyao.Book.Application.Abstractions
{
    public interface ICommonManager
    {
        /// <summary>
        /// 添加操作日志
        /// </summary>
        /// <param name="logs">日志</param>
        /// <param name="cancellationToken">取消令牌</param>
        /// <returns></returns>
        Task AddOperationLogsAsync(IEnumerable<OperationLogDto> logs, CancellationToken cancellationToken);

        /// <summary>
        /// 添加操作日志
        /// </summary>
        /// <param name="logs">日志</param>
        /// <returns></returns>
        Task AddOperationLogsAsync(params OperationLogDto[] logs);
    }
}
